package Init.Entity;

import lombok.Data;
import lombok.NonNull;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import java.util.List;

@Data
@Entity
public class Select_Course {
    public Select_Course()
    {
    }
    public Select_Course(String s1,String s2,String s3,String s4)
    {
        this.course_no=s1;
        this.course_name=s2;
        this.credit=s3;
        this.credit_hour=s4;
    }
    @NonNull
    @Id
    private String course_no;
    @NonNull
    private String course_name;
    @NonNull
    private String credit;
    @NonNull
    private String credit_hour;
    @ManyToMany(mappedBy = "courses")
    private List<Student> students;
}
